package edu.sctu.liangyuxiang.day20150515;


/**
 * Created by user20 on 2015/5/15.
 */
public class TextThree extends TextOne {
    public Student[] student;
    public TextThree(Student[] student) {
        super(student);
        this.student = student;
    }


    @Override
    public void output() {
        int sum = 0;
        for(int i = 0; i<10; i++) {
            if (student[i].getScore() > 60) {
                System.out.println(student[i].getName()+"\b"+student[i].getSex()+"\b"+student[i].getScore()+"\b"+student[i].getAge()+"\b"+student[i].getNumber()+"\b"+ student[i].getAddress());
                sum+=1;
            }
        }
        System.out.println("成绩大于60的同学有：" + sum);
    }



}
